#include "ResourceCacheEvents.h"

namespace re
{
	namespace core
	{
		const EventType LoadFileRequest::eventtype_ = 0x51a9965e;
		const EventType LoadFileResult::eventtype_ = 0xaef2cf7c;
		const EventType FileExistRequest::eventtype_ = 0xf180948;
		const EventType FileExistResult::eventtype_ = 0x4e52ef53;

		//----------------------------------------------------------------------------------------
		//LoadFileRequest
		//----------------------------------------------------------------------------------------
		EventType LoadFileRequest::VGetEventTypeId()
		{
			return eventtype_;
		}
		EventDataPtr LoadFileRequest::VCreateCopy()
		{
			return EventDataPtr(new LoadFileRequest(filename));
		}
		void LoadFileRequest::VGetEventDataAsString(std::wstring & data)
		{
			data.append(L"LoadFileRequest: ");
			data.append(filename);
		}
		//----------------------------------------------------------------------------------------
		//LoadFileResult
		//----------------------------------------------------------------------------------------
		EventType LoadFileResult::VGetEventTypeId()
		{
			return eventtype_;
		}
		EventDataPtr LoadFileResult::VCreateCopy()
		{
			return EventDataPtr(new LoadFileResult(filename));
		}
		void LoadFileResult::VGetEventDataAsString(std::wstring & data)
		{
			data.append(L"LoadFileResult: ");
			data.append(filename);
		}
		//----------------------------------------------------------------------------------------
		//FileExistRequest
		//----------------------------------------------------------------------------------------
		EventType FileExistRequest::VGetEventTypeId()
		{
			return eventtype_;
		}
		EventDataPtr FileExistRequest::VCreateCopy()
		{
			return EventDataPtr(new FileExistRequest(filename));
		}
		void FileExistRequest::VGetEventDataAsString(std::wstring & data)
		{
			data.append(L"FileExistRequest: ");
			data.append(filename);
		}
		//----------------------------------------------------------------------------------------
		//FileExistResult
		//----------------------------------------------------------------------------------------
		EventType FileExistResult::VGetEventTypeId()
		{
			return eventtype_;
		}
		EventDataPtr FileExistResult::VCreateCopy()
		{
			return EventDataPtr(new FileExistResult(filename));
		}
		void FileExistResult::VGetEventDataAsString(std::wstring & data)
		{
			data.append(L"FileExistResult: ");
			data.append(filename);
		}
	}
}